<div class="top-action">
	<ul class="links">
		<li class="record-list"><a href="colors-list.php">List Colors</a></li>
	</ul>
</div>
<div class="form-wrap">
	<form id="colors-edit-form" name="colors-edit-form" method="post" action="colors-edit.php" enctype="multipart/form-data">
  <table class="data-editor">
	<tr class="{cycle values='A,B'}">
		<td class="attribute">Color Code: <span class="required">*</span></td>
		<td>
			<input type="text" name="colors[color_code]" value="{$colors.color_code|utf8}" class="input" id="colors-color_code" />
			<span class="form-hints">Some code for this color</span>
		</td>
	</tr>

	<tr class="{cycle values='A,B'}">
		<td class="attribute">Color Name: <span class="required">*</span></td>
		<td>
			<input type="text" name="colors[color_name]" value="{$colors.color_name|utf8}" class="input" id="colors-color_name" />
			<span class="form-hints">Name of the color</span>
		</td>
	</tr>

	<tr class="{cycle values='A,B'}">
		<td class="attribute">Color Foreground: <span class="required">*</span></td>
		<td>
			<input type="text" name="colors[color_foreground]" value="{$colors.color_foreground|utf8}" class="input" id="colors-color_foreground" maxlength="6" />
			<span class="form-hints">Foreground color code RRGGBB</span>
		</td>
	</tr>

	<tr class="{cycle values='A,B'}">
		<td class="attribute">Color Background: <span class="required">*</span></td>
		<td>
			<input type="text" name="colors[color_background]" value="{$colors.color_background|utf8}" class="input" id="colors-color_background" maxlength="6" />
			<span class="form-hints">Background color codes RRGGBB</span>
		</td>
	</tr>


    <tr>
      <td class="attribute">&nbsp;</td>
      <td>
		<input type="text" name="email" value="" class="vanish" />
		<input type="text" name="is_spam" value="" class="vanish" />
		<!--{* 100% sure, only spammers fill these fields, Leave blank. *}-->
		
		<input type="hidden" name="color_id" value="{$colors.color_id}" />
		
		<!-- This is different than system's protection code. This is related to particular ID. -->
		<input type="hidden" name="protection_code" value="{$colors.code}" />
		<input type="hidden" name="edit-action" value="Edit Colors" />
		<input type="submit" name="submit-button" class="submit" value="Save Changes" />
		<a href="{url::last_page('colors-list.php')}" class="button-cancel">Cancel</a>
	  </td>
    </tr>
  </table>
</form>
</div>
<!-- End of administrators Edit -->

<!-- Validation -->
<script type="text/javascript" src="js/validator/gen_validatorv31.js"></script>
{js src='validators/colors/edit.js' validator=true}

<!-- Rich Editor: Remove if not necessary. Or, use different .js files -->
<script type="text/javascript" src="js/tinymce/tiny_mce.js"></script>
<script type="text/javascript" src="js/tinymce-textareas.js"></script>

<!-- End of colors Edit -->
